package com.jintian.smart.platform.system.mapper;

import com.jintian.smart.base.api.system.entity.RoleEntity;
import com.jintian.smart.kernel.orm.mapper.IBaseExtMapper;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.Mapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.SqlResource;

/**
 * 角色 dao
 */
@Mapper
@SqlResource("system.Role")
public interface RoleMapper extends IBaseExtMapper<RoleEntity> {
    /**
     * 根据角色名称查询
     */
    RoleEntity getByRoleName(@Param("roleName") String roleName);

    /**
     * 根据角色编码
     */
    RoleEntity getByRoleCode(@Param("roleCode") String roleCode);
}
